﻿namespace TDMS.Net;

public abstract class TdmsContainerObject : TdmsObject, ITdmsContainerObject
{
    public abstract IEnumerable<ITdmsObject> GetChildren();
}

public abstract class TdmsContainerObject<T> : TdmsContainerObject where T : ITdmsObject
{
    protected List<T> Children = new();

    public override IEnumerable<ITdmsObject> GetChildren() => Children.Cast<ITdmsContainerObject>();
}